//
//  OrderDetailImageCell.m
//  WeiWeiHaircut
//
//  Created by 超群 on 15/10/16.
//  Copyright © 2015年 超群. All rights reserved.
//

#import "OrderDetailImageCell.h"
#import "UIView+RoundView.h"
#import "QZShopCarModel.h"
#import "UIImageView+WebCache.h"

@implementation OrderDetailImageCell

- (void)awakeFromNib {

    self.priceNowLabel.textColor = SBpurpleColor;
    [self.contentView setlineFrame:CGRectMake(0, 0.5f, WIDTH, .5f) lineColor:groupDarkGrayColor lineAlpha:1];
    [self.contentView setlineFrame:CGRectMake(0, 81.5f, WIDTH, .5f) lineColor:groupDarkGrayColor lineAlpha:1];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setShopModel:(QZShopCarModel *)shopModel{
    _shopModel = shopModel;
    [_leftImage sd_setImageWithURL:[NSURL URLWithString:shopModel.img] placeholderImage:[UIImage imageNamed:@"1123.jpg"]];
    
    _titleLabel.text = shopModel.prodTitle;
    
    _priceNowLabel.text = [NSString stringWithFormat:@"￥%.2lf",shopModel.price2];
    
    _priceOldLabel.text = [NSString stringWithFormat:@"￥%.2lf",shopModel.price2];
    
    _shopNumberLabel.text = [NSString stringWithFormat:@"x %ld",shopModel.amount];
    
    
}

@end
